package com.xuan.chatroom.mapper;

import com.xuan.chatroom.model.Friend;
import com.xuan.chatroom.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper {
    // 注册功能: 插入用户信息
    int insert(User user);

    // 登录功能: 根据用户名查询用户信息
    User queryByName(String username);


    List<User> searchUsers(String username, List<Friend> friends);
}
